package com.report.dto;

public class Response {

    private Object data;

    private String status;

    private String message;

    public Response() {
    }

    public Response(String status, String message, Object data) {
        this.data = data;
        this.status = status;
        this.message = message;
    }

    public static Response success() {
        return new Response("success", "", null);
    }

    public static Response success(Object data) {
        return new Response("success", "", data);
    }

    public static Response failed() {
        return new Response("fail", "", null);
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
